package lab2.text37;

/**
 * Created by Administrator on 2017/11/21.
 */
public class Graduate extends Student{
    Graduate(String s,double a,double b,double c){
        this.name=s;
        this.a=a;
        this.b=b;
        this.c=c;
        this.average=(a+b+c)/3;
    }
    public void  Display(){
        if(this.average>=80)
            status=1;
        else
            status=0;
        if(status==1)
            System.out.println(name+"通过");
        if(status==0)
            System.out.println(name+"不通过");
    }
}
